package com.cn.pushpall;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by chenyuncong on 2019/8/16.
 */
@Slf4j
public class TaskRunnable implements Runnable {
    private Task task;

    public TaskRunnable(Task task) {
        this.task = task;
    }

    @Override
    public void run() {
        log.info("账号[{}] 金额[{}] 订单号[{}] ", task.getId(), task.getMoney(), task.getOrderNumber());

        SimpleLock.unlock(task.getId());
    }
}
